﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucComment.ascx.cs" Inherits="UserControl_ucComment" %>
<div id="chiase" >
    <div id="hr"  style="margin-top: -2px;padding-left:22px;">
        <h3>
            Chia sẻ ý kiến
        </h3><br />
    </div>
    <div style="height: 250px; overflow: scroll; width: 100%; margin-top: -28px;">
        <asp:Repeater ID="recomment" runat="server">
            <HeaderTemplate>
                <table width="100%" style="margin-top:10px">
                    <tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td rowspan="3" style="width: 80px; height: 50px; text-align: center;">
                        <asp:Image ID="Image3" runat="server" ImageUrl="~/images/user_comment.png" Width="50px"
                            Style="text-align: center" />
                    </td>
                    <td id="ten">
                        <strong>
                            <%#Eval("FirstName")%>
                            <%#Eval("LastName")%></strong>
                    </td>
                    <td align="right">
                        <%#Eval("DateComment") %>
                    </td>
                </tr>
                <tr>
                    <td id="hr" colspan="2" valign="top">
                        <%# Server.HtmlDecode(Eval("ContentComment").ToString())%>
                    </td>
                </tr>
                <tr>
            </ItemTemplate>
            <FooterTemplate>
                </tr> </table>
            </FooterTemplate>
        </asp:Repeater>
    </div>
    <div>
        <table  width="99%" style=" margin-left:4px;">
            <tr>
                <td rowspan="3" style="width: 100px; height: 100px; text-align: center;">
                    <h4>
                        <asp:Label ID="Label2" runat="server" Text="Chia sẻ ý kiến"></asp:Label></h4>
                    <asp:Image ID="Image2" runat="server" ImageUrl="~/images/user_comment.png" Width="50px"
                        Style="text-align: center" />
                </td>
                <td>
                    <table style="width: 100%">
                        <tr>
                            <td>
                                <table style="width: 97%">
                                    <tr>
                                        <td id="email" >
                                            <asp:Label ID="lb_email" runat="server" Text="User đăng nhập" ForeColor="#999999"></asp:Label></td>
                                        <td style="text-align: right">
                                            <asp:Label ID="Label1" runat="server" Text="Ký tự cho phép : 500 ký tự" Style="text-align: right"
                                                ForeColor="#999999"></asp:Label>
                                            &nbsp;
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:TextBox ID="txtnoidung" runat="server" TextMode="MultiLine" Width="95%" Height="35px" Font-Names="verdana" Font-Size="12px"
                        Style="margin-bottom: 0px" ForeColor="#5D546E"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="text-align: right; padding-right: 26px">
                    <asp:Button ID="btbinhluan" runat="server" Text="Bình luận" OnClick="btbinhluan_Click" />
                </td>
            </tr>
        </table>
    </div>
</div>
